package com.lq.demo.demo.mode.test;


/**
 * @Auther: LQ
 * @Date: 2018/12/3 22:10
 * @Description:
 */
public class User {
    private Long id;
    private String name;
    private inner inner;

    public User.inner getInner() {
        return inner;
    }

    public void setInner(User.inner inner) {
        this.inner = inner;
    }

    public User() {
    }

    public User(long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;

        User user = (User) object;

        if (id != null ? !id.equals(user.id) : user.id != null) return false;
        return name != null ? name.equals(user.name) : user.name == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        return result;
    }

     class inner {
        Integer things;

        public Integer getThings() {
            return things;
        }

        public void setThings(Integer things) {
            this.things = things;
        }
    }
}
